<!-- residentUpdate.jsp -->
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="com.example.bean.Resident" %>
<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8">
  <title>居民信息修改</title>
</head>
<body>
<form action="resident?action=update" method="post">
  <input type="hidden" name="id" value="${resident.id}">
  <label for="name">姓名:</label>
  <input type="text" id="name" name="name" value="${resident.name}"><br>
  <label for="gender">性别:</label>
  <input type="text" id="gender" name="gender" value="${resident.gender}"><br>
  <label for="birthDate">出生日期:</label>
  <input type="text" id="birthDate" name="birthDate" value="${resident.birthDate}"><br>
  <label for="address">地址:</label>
  <input type="text" id="address" name="address" value="${resident.address}"><br>
  <label for="healthStatus">健康状态:</label>
  <input type="text" id="healthStatus" name="healthStatus" value="${resident.healthStatus}" required><br>
  <input type="submit" value="提交">
</form>
</body>
</html>